package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.share.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 策略实体
 */
@Data
@Schema(description = "策略实体")
public class Tactics extends BaseEntity {

    /** 主键ID */
    @Schema(description = "主键ID", example = "1")
    @TableId(value = "id",  type = IdType.AUTO)
    private Long id;

    /** 策略名称 */
    @Schema(description = "策略名称", example = "策略A")
    @NotBlank(message = "策略名称不能为空")
    private String tacticsName;

    /** 策略方案 */
    @Schema(description = "策略方案", example = "这是一个策略的详细方案描述")
    @NotBlank(message = "策略方案不能为空")
    private String tacticsScheme;
}